﻿namespace TheCodeWerks.Advertising
{
	using System;
	using System.Collections.Generic;
	using System.Runtime.Serialization;

	[DataContract]
	public class AdUnit
	{
		private const double DefaultWeightValue = 1;

		[DataMember]
		public string Id;

		[DataMember]
		public List<string> Keywords = new List<string>();

		[DataMember]
		public AdProvider Provider;

		[DataMember]
		public string Query;

		[DataMember]
		public string Type;

		[DataMember]
		public double Weight = DefaultWeightValue;
	}
}
